package config

import "fmt"

type Redis struct {
	RedisServer   string `yaml:"redisServer"`
	RedisPort     string `yaml:"redisPort"`
	RedisPassword string `yaml:"redisPassword"`
}

func (r *Redis) RedisAddr() string {
	return fmt.Sprintf("%s:%s", r.RedisServer, r.RedisPort)
}
